package com.cm.caseManagement.pojo.entity;

import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 角色对象 cm_sys_role
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmSysRole extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 角色名称 */
    @Excel(name = "角色名称")
    private String roleName;

    /** 锁定状态：0-正常，1-锁定 */
    @Excel(name = "锁定状态：0-正常，1-锁定")
    private String lockFlag;

    /** 删除时间（逻辑删除） */
    @Excel(name = "删除时间", readConverterExp = "逻=辑删除")
    private Date deleteTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setRoleName(String roleName)
    {
        this.roleName = roleName;
    }

    public String getRoleName()
    {
        return roleName;
    }

    public void setLockFlag(String lockFlag)
    {
        this.lockFlag = lockFlag;
    }

    public String getLockFlag()
    {
        return lockFlag;
    }

    public void setDeleteTime(Date deleteTime)
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime()
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("roleName", getRoleName())
            .append("lockFlag", getLockFlag())
            .append("deleteTime", getDeleteTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
